package com.boarsoft.flow.demo.login;

import org.springframework.beans.factory.annotation.Autowired;

import com.boarsoft.flow.core.bean.ProcessHandler;
import com.boarsoft.flow.demo.bean.User;
import com.boarsoft.rpc.demo.DemoService;

public class LoignHelloHandler implements ProcessHandler {
	@Autowired
	protected DemoService service;

	@Override
	public Object process(String entry, Object data, Throwable throwable) throws Throwable {
		User u = (User) data;
		String s = service.helloSC(new com.boarsoft.rpc.demo.bean.User(u.getName()));
		System.out.println(s);
		return u;
	}
}
